import { randInt } from "./randInt"

export function randChoice(items:any[]) {
  const target = (arguments.length === 1 && Array.isArray(items)) ? items : arguments
  return target[randInt(0, target.length - 1)]
}
